python float till 2 decimal places

39

python float till 2 decimal places -

float = 2.154327
format_float = "{:.2f}".format(float)
print(format_float)

Comments

Submit
0 Comments